package net.huashitong.Indicators.utils;

import java.math.BigDecimal;
import java.util.Comparator;

import net.huashitong.Indicators.databean.CompletionClassificationDatabean;

public class ComparatorsUtils implements Comparator<CompletionClassificationDatabean>{

	@Override
	public int compare(CompletionClassificationDatabean o2, CompletionClassificationDatabean o1) {

		Double double1 = Double.parseDouble(o2.getPlanneValue());
		Double double2 = Double.parseDouble(o1.getPlanneValue());
		BigDecimal data1 = new BigDecimal(double1); 
		BigDecimal data2 = new BigDecimal(double2); 
		return data2.compareTo(data1);
	}

}
